package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.UUID;

/**
 * 会员等级实体类
 */
@Table(name = "c_member_level")
public class MemberLevel {

    @Id
    @Column(name = "member_level_id", length = 64)
    private String memberLevelId = UUID.randomUUID().toString();//主键;

    @Column(name = "member_level_name", length = 20)
    private String memberLevelName;//等级名称

    @Column(name = "member_level_describe")
    private String memberLevelDescribe;//等级描述

    @Column(name = "member_level_status", length = 11)
    private Integer memberLevelStatus=0;//状态值（默认0启用，-1禁用）
    @Column(name = "member_level_sort", length = 11)
    private Integer memberLevelSort=0;//排序

    @Column(name = "member_level_del", length = 11)
    private Integer memberLevelDel=0;//逻辑删除（默认0，-1表示删除）

    @Column(name = "create_time", length = 20)
    private String createTime = DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    @Column(name = "del_time", length = 20)
    private String delTime;//删除时间   

    @Column(name = "update_time", length = 20)
    private String updateTime;//修改时间

    public String getMemberLevelId() {
        return memberLevelId;
    }

    public void setMemberLevelId(String memberLevelId) {
        this.memberLevelId = memberLevelId == null ? null : memberLevelId.trim();
    }

    public String getMemberLevelName() {
        return memberLevelName;
    }

    public void setMemberLevelName(String memberLevelName) {
        this.memberLevelName = memberLevelName == null ? null : memberLevelName.trim();
    }

    public String getMemberLevelDescribe() {
        return memberLevelDescribe;
    }

    public void setMemberLevelDescribe(String memberLevelDescribe) {
        this.memberLevelDescribe = memberLevelDescribe == null ? null : memberLevelDescribe.trim();
    }

    public Integer getMemberLevelStatus() {
        return memberLevelStatus;
    }

    public void setMemberLevelStatus(Integer memberLevelStatus) {
        this.memberLevelStatus = memberLevelStatus;
    }

    public Integer getMemberLevelSort() {
        return memberLevelSort;
    }

    public void setMemberLevelSort(Integer memberLevelSort) {
        this.memberLevelSort = memberLevelSort;
    }

    public Integer getMemberLevelDel() {
        return memberLevelDel;
    }

    public void setMemberLevelDel(Integer memberLevelDel) {
        this.memberLevelDel = memberLevelDel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

}